package com.easychat.entity.enums;

/**
 * @Author: yudaxian
 * @Description: TODO
 * @DateTime: 2024/8/6 23:38
 **/
public enum BeautyAccountStatusEnum {
    NO_USE(0, "未使用"),
    USED(1, "已使用")
    ;

    private Integer status;
    private String desc;

    BeautyAccountStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getStatus() {
        return status;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    private static BeautyAccountStatusEnum getByStatus(Integer status) {
        try {
            for (BeautyAccountStatusEnum item : BeautyAccountStatusEnum.values()) {
                if (item.getStatus().equals(status)) {
                    return item;
                }
            }
            return null;
        } catch (Exception e) {
            return null;
        }
    }
}
